<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登陆界面</title>
    <link rel="stylesheet" href="css/login.css">
    <script src="/js/axios.min.js"></script>
    <script src="/js/query.js"></script>
    <script src="/bbsjs/login.js"></script>
</head>
<body>
<div class="login">
    <div class="input-box">
        <div>用户名：<input type="text" id="username"></div>

        <div>密码：<input type="password" id="pwd"></div>
        <span id="errorSpan" class="errorSpan"></span>
    </div>
    <div class="btn">
        <input type="button" value="登陆" onclick="land()">
        <input type="reset" value="重置">
        <input type="button" value="注册" onclick="showRegister()">
    </div>
</div>

<div id="registered" class="registered" style="visibility: hidden">
    <div class="content">
        <div class="register-info">
            用户名：<input type="text" id="usernameText">
        </div>
        <div class="register-info">
            昵称：<input type="text" id="nicknameText">
        </div>
        <div class="register-info">
            密码：<input type="text" id="pwdText">
        </div>
        <div class="register-info">
            确认密码：<input type="text" id="newPwdText">
        </div>
        <div class="register-info">
            电子邮箱：<input type="text" id="emailText">
        </div>
        <span class="photo-title">选择头像：</span>
        <div class="photo">
            <img src="" id="faceImg" width="100px" height="100px">
            <input type="file" id="fileText" onchange="changeFace()">
        </div>
        <div class="content-btn">
            <input type="button" value="注册" onclick="register()">
            <input type="reset" value="重置">
            <input type="reset" value="返回" onclick="closeRegistered()">
        </div>
    </div>
</div>
</body>
</html>